﻿namespace ScrumLite.Services
{
    using ScrumLite.Services.Contracts;
    using System.Collections.ObjectModel;
    using System.ServiceModel;
    using System.Security.Permissions;

    [ServiceContract]
    public interface IProfileService
    {
        [OperationContract]
        string GetFullName(string samAccountName);

        [OperationContract]
        [SecurityPermission(SecurityAction.LinkDemand)]
        string[] GetUserRoles(string samAccountName);

        [OperationContract]
        [SecurityPermission(SecurityAction.LinkDemand)]
        bool IsUserInRole(string samAccountName, string role);

        [OperationContract]
        [SecurityPermission(SecurityAction.LinkDemand)]
        Collection<Person> GetPeople();
    }
}
